"use strict";
let message = "今天圣诞节";
console.log(message);
let bool = true;
let age = 23;
//联合类型 msg数据类型允许支持多个
let msg;
let address;
address = null;
/**
 * 数组类型
 */
let array = [1, 2, 3, 4];
let array2 = ["1", "2", "3"];
//定义数组语法二
let array3 = [3, 4, 5, 6];
/**
 * 元组类型：数组的一种扩展。要求你对数组中每一位都进行单独约束
 * 元组类型用于特定的一种场景
 */
let user = [1, "xiaowang", true];
/**
 *
 * 枚举概念：将代码中一些不可读的值，提取出来，用枚举表现。代码中用枚举变量替代
 * 枚举的类型是有限个数的。一年四季、一年月份、支付状态
 *
 */
var OrderStatus;
(function (OrderStatus) {
    OrderStatus[OrderStatus["payError"] = 1] = "payError";
    OrderStatus[OrderStatus["paySuccess"] = 2] = "paySuccess";
    OrderStatus[OrderStatus["payTimeout"] = 3] = "payTimeout";
    OrderStatus[OrderStatus["canclePay"] = 4] = "canclePay";
})(OrderStatus || (OrderStatus = {}));
let order = {
    id: 1,
    type: "普通订单",
    status: 0
};
if (order.status == OrderStatus.payError) {
    //console.log("支付失败")
}
else if (order.status == OrderStatus.paySuccess) {
    //console.log("支付成功")
}
else {
}
/**
 * any
 */
const app = document.getElementById("app");
let app2 = "1234";
let app3 = 1;
/**
 * Object类型，可以表示数组、对象、函数
 */
let temp1 = [];
let temp2 = {};
let temp3 = function () { };
let teacher = { id: 1, name: "bo", address: "南京" };
